package com.xrit.sunnyday.service;

import com.github.pagehelper.PageInfo;
import com.xrit.sunnyday.entity.QueryPageBean;
import com.xrit.sunnyday.exception.SunnydayException;
import com.xrit.sunnyday.pojo.CheckGroup;
import com.xrit.sunnyday.pojo.CheckItem;

import java.util.List;

public interface CheckGroupService {
/*分页查询*/
    PageInfo<CheckGroup> findPage(QueryPageBean queryPageBean);

    CheckGroup findById(Integer id);

    void update(CheckGroup checkGroup,Integer[] checkitemIds);

    void addCheckGroupAndItem(CheckGroup checkGroup, Integer[] checkitemIds);

    List<Integer> findByCheckItemId(Integer id);

    void deleteById(Integer id)throws SunnydayException;

    List<CheckGroup> findAll();
}
